package com.yoda.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class YddArticleVo {
    @ApiModelProperty("文章id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者的用户名， 用户发布的user-名称")
    private String author;

    @ApiModelProperty("seo关键字")
    private String keywords;

    @ApiModelProperty("seo的 描述")
    private String description;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("缩略图，可多张逗号分隔")
    private String pic;

    @ApiModelProperty("阅读次数")
    private Long click;

    @ApiModelProperty("0表示不推荐1表示推荐")
    private Integer ishot;

    @ApiModelProperty("是否置顶，1是，0否，置顶的文章必须是推荐文章")
    private Integer istop;

    @ApiModelProperty("创建时间")
    private Long createDate;

    @ApiModelProperty("更新时间")
    private Long updateDate;

    @ApiModelProperty("分类ID")
    private Integer cateid;

    @ApiModelProperty("文章的标签，可多个逗号分隔")
    private String tags;

    @ApiModelProperty("文章状态，0待审核，1草稿箱，2已发布，3已删除")
    private Integer status;

    @ApiModelProperty("收藏数量")
    private String lovenum;

    @ApiModelProperty("用户id")
    private Integer userId;

    private String isLike;

    private String isCollect;
}
